import moment from 'moment'
const TYPE = {
  '1': '正式',
  '2': '非正式'
}
export function typeFilter(value) {
  return TYPE[value] || '未知'
}
export function dateFilter(value, format = 'YYYY-MM-DD') {
  return moment(value).format(format)
}
const status = {
  '1': false,
  '2': true
}

export function statusFilter(value) {
  return status[value]
}
